/**
 * @author: HenryDai
 * @Date: 2022/04/30 19:03
 * @description:
 */
public class Computer {

    private MathMethod strategy;

    Computer(){
        strategy = new Add();
    }

    public void setStrategy(MathMethod strategy)
    {
        this.strategy = strategy;
    }

    public void doOperation(double a, double b)
    {
        strategy.doOperation(a, b);
    }

}
